package com.study.ext;

import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;

/**
 * @Author tanglingyu
 * @Date: 2021/06/06/ 15:03
 * @Description
 */
@Component
public class Business1Factory extends AbstractBusiness1Factory {

  private List<Business1DefaultStrategy> strategyInterfaces;

  public Business1Factory(List<Business1DefaultStrategy> strategyInterfaces) {
    this.strategyInterfaces = strategyInterfaces;
  }

  @Override
  protected List<StrategyInterface> getStrategyInterfaces() {
    return new ArrayList<>(strategyInterfaces);
  }

  @Override
  public StrategyEnum strategyType() {
    return StrategyEnum.StrategyEnum1;
  }
}
